package com.simon.app.october.modules.job.service;

import com.simon.app.october.common.utils.PageUtil;
import com.simon.app.october.common.utils.QueryPage;
import com.simon.app.october.modules.job.entity.ScheduleJobEntity;

public interface ScheduleService {
    public ScheduleJobEntity findById(Long jobId);

    public PageUtil<ScheduleJobEntity> getPageByParams(QueryPage queryPage);

    public void save(ScheduleJobEntity entity);

    public void update(ScheduleJobEntity entity);

    public void delete(Long[] jobIds);

    public void run(Long[] jobIds);

    public void pause(Long[] jobIds);

    public void resume(Long[] jobIds);

    public void alterStatus(Long[] jobIds, int status);
}
